import { axios } from '@/utils/request'

export  function selectList(){
  return axios({
    url: '/equMain/getEquMainType'
  })
}


//获取授权开关状态
export function getEquMainType() {
  return axios({
    url: '/equMain/getEquMainType',
    method: 'get',
  })
}
//  打开或关闭授权开关
export function closeOrOpen(flag){
    return axios({
      url: '/equMain//closeFlag/'+flag,
      method: 'get'
    })
  }

//授权/取消授权
export  function cancelOrAuthorize(url,parameter){
  return axios({
    url: url,
    method: 'post',
    data: parameter
  })
}

//添加/移出 白名单
export  function  addOrCancelWhiteList(url,parameter){
  return axios({
    url: url,
    method: 'post',
    data: parameter
  })
}

//驳回授权
export function turnDownGo(url,ids){
  return axios({
    url: url+ids,
    method: 'get'
  })
}

